//
//  PersonTableViewCell.m
//  Taste
//
//  Created by 徐昊 on 16/9/9.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "PersonTableViewCell.h"
#import "PersonCon.h"
#import "UIImageView+WebCache.h"
#import "NSString+Vali.h"
@interface PersonTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *pic;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *short_Content;
@property (weak, nonatomic) IBOutlet UILabel *typeName;
@property (weak, nonatomic) IBOutlet UILabel *colnum;
@end

@implementation PersonTableViewCell

- (void)setCon:(PersonCon *)con {
    _con = con;
    _title.text = _con.title;
    _typeName.text = _con.typename;
    NSString *string = [NSString stringWithFormat:@"%ld", _con.colnum];
    _colnum.text = string;
    _short_Content.text = _con.short_content;
    [_pic sd_setImageWithURL:[NSURL URLWithString:[NSString imageWebWithStr:_con.pic]] placeholderImage:[UIImage imageNamed:@"IMG_Universal_Placeholder"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        
        
    }];
    
}


- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
